// app.js
import './utils/utils'
import './utils/http'
App({
  onLaunch() {
    this.getToken()
    this.getRefreshToken()
  },
  getToken() {
    const token = wx.getStorageSync('token')
    this.token = token
    // console.log(5555, token);
    return token
  },
  getRefreshToken() {
    const refreshToken = wx.getStorageSync('refreshToken')
    this.refreshToken = refreshToken
    return refreshToken
  },
  setToken(token, refreshToken) {
    wx.setStorageSync('token', token)
    wx.setStorageSync('refreshToken', refreshToken)
    this.token = token
    this.refreshToken = refreshToken
  }
})
